extends Node2D

# class member variables go here, for example:
# var a = 2
# var b = "textvar"

func _ready():
	# Called when the node is added to the scene for the first time.
	# Initialization here
	pass
func start(dmg):
	$Label.text=String(dmg)
	$AnimationPlayer.play("fade")
	yield($AnimationPlayer,"animation_finished")
	queue_free()
	



